
#include <QtWidgets/QApplication>
#include "mediasoupclient.hpp"
#include "api/media_stream_interface.h"
#include "rtc_base/thread.h"
#include "rtc_base/win32_window.h"
#include "rtc_base/win32_socket_init.h"
#include "rtc_base/win32_socket_server.h"
#include "rtc_base/physical_socket_server.h"
#include "websocket/websocket_transport.h"
#include "MainWgt.h"
#include "rtc_base/ssl_adapter.h"
#include <QDebug>
int main(int argc, char *argv[])
{
	rtc::WinsockInitializer winsock_init;
	rtc::Win32SocketServer w32_ss;
	rtc::Win32Thread w32_thread(&w32_ss);
	rtc::ThreadManager::Instance()->SetCurrentThread(&w32_thread);

	rtc::InitializeSSL();
	mediasoupclient::Logger::SetLogLevel(Logger::LogLevel::LOG_DEBUG);
	mediasoupclient::Initialize();
	qDebug() << mediasoupclient::Version().c_str();
	QApplication a(argc, argv);
	MainWgt wgt;
	wgt.show();
    return a.exec();
}
